package com.fanrenqiji.common.utils;

import java.util.Random;

public class RandomCodeCreate {
	/**
	 * 用于验证手机生成的校验码
	 * 
	 * @param count
	 * @return
	 */
	public static String createPhoneCode(int count) {
		char[] NUM_CODE = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };
		Random random = new Random();
		StringBuffer sb = new StringBuffer("");
		while (count-- > 0) {
			sb.append(random.nextInt(NUM_CODE.length));
		}
		return sb.toString();
	}

}
